package com.mnsq.im.business;

import com.mnsq.im.bean.SocketMessage;
import com.mnsq.im.bean.SocketsInfoHolder;
import io.netty.channel.ChannelHandlerContext;

/**
 * @author zj00924
 */
public class MessageEvent {
    static void accept(SocketMessage socketMessage, ChannelHandlerContext channelHandlerContext) {
        socketMessage.setContent(contentValid(socketMessage.easyContent()));
        SocketsInfoHolder.sendGroup(socketMessage, socketMessage.getGroup(), channelHandlerContext);
    }

    private static String contentValid(String str) {
        return str;
    }
}
